<?php
namespace User\Model;
use Think\Model;

class ApplicationsModel extends Model
{
    CONST STATUS_ACTIVE = 1;
    CONST STATUS_DELETE = 9;

    CONST USER_ACTIVE = 1;
    CONST USER_DELETE = 9;

    CONST WISH_TXT = 1;
    CONST WISH_VOICE = 2;

    CONST TYPE_SEND = 1;
    CONST TYPE_RECEIVE = 2;

    public static function getAdName($id){
        $AdTypeArray = [
            "1" => "公司证件遗失公告",
            "2" => "公司章遗失公告",
            "3" => "公司发票遗失声明",
            "4" => "公司注销公告",
            "5" => "公司减资公告",
            "6" => "其他公告",
            "7" => "个人证件遗失声明",
            "8" => "个人发票遗失声明",
            "9" => "个人刊登"
        ];
        if(array_key_exists($id, $AdTypeArray)){
            return $AdTypeArray[$id];
        }
        return "未知";
    }
}